home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Locale.h < prev    next >
Text File  |  1991-04-17  |  2KB  |  63 lines

  1. /*
  2.     Locale.h - Localization
  3.     
  4.     Copyright Apple Computer, Inc.  1988, 1990
  5.     All rights reserved.
  6.     
  7. */
  8.  
  9. #ifndef __LOCALE__
  10. #define __LOCALE__
  11.  
  12. /* 
  13.  *   Declarations
  14.  */
  15.  
  16. #define NULL 0
  17.  
  18. #define LC_ALL        1 /* entire locale */
  19. #define LC_COLLATE    2 /* strcoll and strxfrm functions */
  20. #define LC_CTYPE      3 /* character handling and multibyte functions */
  21. #define LC_MONETARY   4 /* monetary formatting information returned by localeconv */
  22. #define LC_NUMERIC    5 /* decimal point formatting input/output and string conversions */
  23. #define LC_TIME       6 /* strftime function */
  24.  
  25. struct lconv {
  26.     char *decimal_point;       /* "." */
  27.     char *thousands_sep;       /* "" */
  28.     char *grouping;            /* "" */
  29.     char *int_curr_symbol;     /* "" */
  30.     char *currency_symbol;     /* "" */
  31.     char *mon_decimal_point;   /* "" */
  32.     char *mon_thousands_sep;   /* "" */
  33.     char *mon_grouping;        /* "" */
  34.     char *positive_sign;       /* "" */
  35.     char *negative_sign;       /* "" */
  36.     char frac_digits;          /* CHAR_MAX */
  37.     char int_frac_digits;      /* CHAR_MAX */
  38.     char p_cs_precedes;        /* CHAR_MAX */
  39.     char p_sep_by_space;       /* CHAR_MAX */
  40.     char n_cs_precedes;        /* CHAR_MAX */
  41.     char n_sep_by_space;       /* CHAR_MAX */
  42.     char p_sign_posn;          /* CHAR_MAX */
  43.     char n_sign_posn;          /* CHAR_MAX */
  44. };
  45.  
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. /*
  52.  *  functions
  53.  */
  54.  
  55. char *setlocale (int category, const char *locale);
  56. struct lconv *localeconv (void);
  57.  
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61.  
  62. #endif __LOCALE__
  63.